<?php
/**
 *@作者:MissZhang
 *@邮箱:<787727147@qq.com>
 *@创建时间:2022/10/12 11:36
 *@说明:自提点验证
 */
namespace app\api\validate;

class PickValidate extends BaseValidate
{
    //验证规则
    protected $rule = [
        'contacts_name'                 =>          'require',
        'contacts_mobile'               =>          'require|checkMobile',
        'store_name'                    =>          'require|unique:store',
        'district'                      =>          'require',
        'store_address'                 =>          'require',
        'longitude'                     =>          'require',
        'latitude'                      =>          'require',
        'store_logo'                    =>          'require',
    ];
    //错误信息
    protected $message  = [
        'contacts_name.require'         =>          '请输入联系人',
        'contacts_mobile.require'       =>          '请输入联系电话',
        'contacts_mobile.checkMobile'   =>          '请输入正确的联系电话',
        'store_name.require'            =>          '请输入店铺名称',
        'store_name.unique'             =>          '店铺名称已存在',
        'district.require'              =>          '请选择所在地区',
        'store_address.require'         =>          '请输入详细地址',
        'longitude.require'             =>          '请选择经度',
        'latitude.require'              =>          '请选择纬度',
        'store_logo.require'            =>          '请上传店铺门头照片',
    ];
}
